package com.canaan.business.mapper.storehouse;

import com.canaan.business.domain.storehouse.InventoryAlert;

import java.util.List;


/**
 * 库存预警Mapper接口
 *
 * @author ruoyi
 * @date 2023-03-07
 */
public interface InventoryAlertMapper {
    /**
     * 查询库存预警
     *
     * @param id 库存预警主键
     * @return 库存预警
     */
    public InventoryAlert selectInventoryAlertById(Long id);

    /**
     * 查询库存预警列表
     *
     * @param inventoryAlert 库存预警
     * @return 库存预警集合
     */
    public List<InventoryAlert> selectInventoryAlertList(InventoryAlert inventoryAlert);

    /**
     * 新增库存预警
     *
     * @param inventoryAlert 库存预警
     * @return 结果
     */
    public int insertInventoryAlert(InventoryAlert inventoryAlert);

    /**
     * 批量新增库存预警
     *
     * @param inventoryAlertList 库存预警列表
     * @return 结果
     */
    public int batchInsertInventoryAlert(List<InventoryAlert> inventoryAlertList);

    /**
     * 修改库存预警
     *
     * @param inventoryAlert 库存预警
     * @return 结果
     */
    public int updateInventoryAlert(InventoryAlert inventoryAlert);

    /**
     * 批量修改库存预警
     *
     * @param inventoryAlertList 库存预警列表
     * @return 结果
     */
    public int batchUpdateInventoryAlert(List<InventoryAlert> inventoryAlertList);

    /**
     * 删除库存预警
     *
     * @param id 库存预警主键
     * @return 结果
     */
    public int deleteInventoryAlertById(Long id);

    /**
     * 批量删除库存预警
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteInventoryAlertByIds(Long[] ids);

    /**
     * 查询库存预警
     *
     * @param no 编号
     * @return 库存预警
     */
    public InventoryAlert selectInventoryAlertByNo(String no);

    /**
     * 批量删除库存预警
     *
     * @param nos 需要删除的编号集合
     * @return 结果
     */
    public int deleteInventoryAlertByNos(String[] nos);

    /**
     * 删除库存预警信息
     *
     * @param no 编号
     * @return 结果
     */
    public int deleteInventoryAlertByNo(String no);

}
